package com.loopj.android.http;

import android.content.Context;

public class MyAsyncHttpClient extends AsyncHttpClient {

	private String contentType = null;

	private Context context = null;

	public MyAsyncHttpClient(String ContentType, Context context) {
		super();
		this.contentType = contentType;
		this.context = context;

	}

	public RequestHandle posts(String url, RequestParams params,
			ResponseHandlerInterface responseHandler) {
		// TODO 自动生成的方法存根
		return posts(this.context, url, params, responseHandler);
	}

	public RequestHandle posts(Context context, String url,
			RequestParams params, ResponseHandlerInterface responseHandler) {
		return post(context, url, paramsToEntity(params, responseHandler),
				this.contentType, responseHandler);
	}

	// public RequestHandle post(String url, RequestParams params,
	// ResponseHandlerInterface responseHandler, String ContentType) {
	//
	// return post(null, url, paramsToEntity(params, responseHandler),
	// ContentType, responseHandler);
	// }

}
